<template>
  <!-- 优质商家的名字 -->
  <span class="youzhi-box">
    <img src="../../assets/img/youzhishangjia/you.png" alt="">
    <span class="gradient-border">
      <span class="gradient-border-content">
        {{ name }}
      </span>
    </span>
  </span>
</template>

<script>
export default {
  name: "",
  data() {
    return {};
  },

  props: ["name"],
  methods: {},
};
</script>
<style scoped lang="scss">
.youzhi-box {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
  .gradient-border {
    display: inline-block;
    overflow: hidden;
    position: relative;
    border-radius: 4px 11px 4px 4px;
    height: 25px;
    background: linear-gradient(180deg, rgba(204, 171, 250, 1), rgba(130, 84, 255, 1)) ;
    padding: 2px;
    max-width: 154px;
  }
  img {
    width: 27px;
    height: 30px;
    position: absolute;
    left: -10px;
    top: -1px;
    z-index: 1;
  }

  .gradient-border-content {
    display: inline-block;
    line-height: 20px;
    height: 21px;
    padding-left: 20px;
    padding-right: 15px;
    background: #6C5DD3;
    border-radius: 4px 11px 4px 4px; 
    font-weight: 500;
    font-size: 14px;
    color: #ffffff;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
  }

  
}
</style>
